using Publicuse.Entity.AttributeUtil;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Publicuse.Entity
{
    /// <summary>
    /// 公共查询参数
    /// </summary>
    public class CommonQuery
    {

        public int pageIndex { get; set; } = 1;

        public int pageSize { get; set; } = 10;

        public string storedProcedureName { get; set; } = "querypage";

        public int dbIns { get; set; }

        public string sql { get; set; }

        public string sqlWhere { get; set; }

        public string files { get; set; } ="*";

        public string sortFile { get; set; }= "Id";

        public string sortType { get; set; } = "desc";

        public string tableName { get; set; }

        public bool isDefault { get; set; }

        public string loginUserCode { get; set; }

        public string loginToken { get; set; }

        public int status { get; set; }

        public string exportName { get; set; }

        public DBWorkType DbWorkType { get; set; } = DBWorkType.MySql;

        public string CacheKey { get; set; } = string.Empty;

       public BusinessType businessType { get; set; }

  }

    public enum DBWorkType : int
    {
        MySql = 1,

        SqlServer = 2,

        Oracle = 3,

        MySqlDapper= 4
    }
}
